import axios from '../until/reques'
export let get_list = () =>{
    return (dispatch)=>{
        axios.get('/list').then(res=>{
            return dispatch({
                type:"GET_LIST",
                payload:res.data.list
            })
        })
    }
}
export let set_index = (index) =>{
    return {
        type:'SET_INDEX',
        payload:index
    }
}
// export let check_childrenData = (index) =>{
//     return {
//         type:"CHECK_CHILDRENDATA",
//         payload:index
//     }
// }